package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.pojo.Dish;
import com.itheima.reggie.pojo.Setmeal;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    //根据ID查询数据回显
    SetmealDto getSetMealDto(Long id);

    //添加套餐
    void saveSetMealDto(SetmealDto setmealDto);

    //套餐分页查询
    Page<SetmealDto> pageSetMeal(Integer page, Integer pageSize, String name);

    //删除套餐
    void deleteByIds(Long[] ids);

    //修改
    void updateByIds(SetmealDto setmealDto);
    //查询套餐菜品信息
    List<DishDto> setMealDish(Long id);
}
